fix(frontend): resolve strict build errors and configure 100MB payload limit for BIDS uploads#8
Open
chinmayy777 wants to merge 1 commit intoOSIPI:mainfrom
Open
Conversation
…ors and configure 100MB payload limit for BIDS uploads
This was referenced Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Resolves #5
Resolves #6
This PR fixes the broken local Docker environment, allowing new contributors to successfully run
docker-compose up --buildas outlined in the contributing guidelines. It also resolves the413 Body exceeded 1 MB limitcrash that occurs when uploading real-world ASL datasets.1. Build Fixes (Node 20 & ESLint):
node:18-alpinetonode:20-alpineinapps/frontend/Dockerfileto satisfy updated dependency engine requirements..lengthtoNumber()inUploadButtons.tsxto pass strict ESLint/TypeScript checks.anytypes inuploadHandlers.tsto unblock the Next.js production build.2. Large Payload Upload Fix:
bodySizeLimit: '100mb'innext.config.tsto allow large DICOM/NIfTI folder uploads.COPY --from=builder /app/next.config.ts ./to the runner stage of theDockerfileto ensure the 100MB limit is actually applied in the production image..env.localfile, I configured Next.jsrewritesto proxy/apitraffic directly to the internal Docker backend network.404routing errors for all new contributors out-of-the-box.Pull Request Review Checklist